package cloud.ben.smallscalepigfarmmanagementsystem.entity.sow;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @Author: Ben
 * @Date: 2022/3/31 15:55
 */
@ApiModel(description = "母猪配种信息表")
@ToString
//@NoArgsConstructor
@Data
@TableName("sow_mating_information")
public class SowMatingInformation {


    /**
     * 猪id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(required = true,value = "猪id")
    private Integer id;


    /**
     * 猪名称
     */
    @ApiModelProperty(required = true,value = "猪名称")
    @NotNull(message = "猪名称为空")
    private String pigName;

    /**
     * 配种日期
     */
    @ApiModelProperty(required = true,value = "配种日期")
    @NotNull(message = "配种日期为空")
    private String breedingDate;

    /**
     * 配种员
     */
    @ApiModelProperty(required = true,value = "配种员")
    @NotNull(message = "配种员为空")
    private String matingPart;

    /**
     * 配种方式
     */
    @ApiModelProperty(required = true,value = "配种方式")
    @NotNull(message = "配种方式为空")
    private String breedingWay;


    public SowMatingInformation(Integer id, String pigName, String breedingDate, String matingPart, String breedingWay) {
        this.id = id;
        this.pigName = pigName;
        this.breedingDate = breedingDate;
        this.matingPart = matingPart;
        this.breedingWay = breedingWay;
    }

    public SowMatingInformation(String pigName, String breedingDate, String matingPart, String breedingWay) {
        this.pigName = pigName;
        this.breedingDate = breedingDate;
        this.matingPart = matingPart;
        this.breedingWay = breedingWay;
    }

    public SowMatingInformation() {
    }
}
